package Common;

//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
	///#endregion


//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
	///#region Excel �ļ����ݿ������
/** 
 Excel �ļ����ݿ������
*/
public class ExcelFileDBC
{
	private String FXlsFileName = "";
	private String FConnString = "";

	public ExcelFileDBC()
	{
	}

	public ExcelFileDBC(String XlsFile)
	{
		SetXlsFile(XlsFile);
	}


	/** 
	 ���� Excel �ļ�����
	 
	 @param XlsFile
	*/
	public final void SetXlsFile(String XlsFile)
	{
		FXlsFileName = XlsFile;
		FConnString = CommonFileDBC.GetXlsConnStr(FXlsFileName);
	}

	/** 
	 �õ����ݼ�
	 
	 @param SheetNameOrSqlStr Ҫȡ���ݵ� Excel �ļ��� Sheet����Sql���
	 @return ��ȡ���򷵻����ݼ�������Ϊnull 
	*/
	public final DataSet GetDataSet(String SheetNameOrSqlStr)
	{
		return CommonFileDBC.CreateDataSet(FConnString, SheetNameOrSqlStr);
	}

	public final DataSet GetDataSet()
	{
		return CommonFileDBC.CreateDataSet(FConnString);
	}

}
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
	///#endregion



